<%= render  :partial => "apo/navigation" %>

<div id="containerBody">

	<div class="container filterContainer">

		<div class="cellRow cellRowHeader">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				Filter Members
			</div>
		</div>

		<div class="cellRow cellRow1">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "All", :action => "list_src", :sort_by => params[:sort_by] %>
			</div>
		</div>
		<div class="cellRow cellRow2">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "Actives", :action => "list_src", :filter => "Active", :sort_by => params[:sort_by] %>
			</div>
		</div>
		<div class="cellRow cellRow1">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "Pledges", :action => "list_src", :filter => "Pledge", :sort_by => params[:sort_by] %>
			</div>
		</div>
		<div class="cellRow cellRow2">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "New Actives", :action => "list_src", :filter => "New Active", :sort_by => params[:sort_by] %>
			</div>
		</div>
		<div class="cellRow cellRow1">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "Associates", :action => "list_src", :filter => "Associate", :sort_by => params[:sort_by] %>
			</div>
		</div>
		<div class="cellRow cellRow2">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "Probates", :action => "list_src", :filter => "Probate", :sort_by => params[:sort_by] %>
			</div>
		</div>
		<div class="cellRow cellRow1">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "Neophytes", :action => "list_src", :filter => "Neophyte", :sort_by => params[:sort_by] %>
			</div>
		</div>
		<div class="cellRow cellRow2">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "Away From School", :action => "list_src", :filter => "Away From School", :sort_by => params[:sort_by] %>
			</div>
		</div>
		<div class="cellRow cellRow1">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "Alums", :action => "list_src", :filter => "Alum", :sort_by => params[:sort_by] %>
			</div>
		</div>
		<div class="cellRow cellRow2">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "Advisors", :action => "list_src", :filter => "Advisor", :sort_by => params[:sort_by] %>
			</div>
		</div>
		<div class="cellRow cellRow1">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "SRC List", :action => "list_src" %>
			</div>
		</div>
		<div class="cellRow cellRow2">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "Quorum", :action => "quorum" %>
			</div>
		</div>
		<% if session[:user].admin %>
		<div class="cellRow cellRow1">
			<div class="cellBlockNoBorder cellBlockNoBorderL">
				<%= link_to "Deleted Members", :action => "deleted" %>
			</div>
		</div>
		<% end %>

	</div>

	<div class="container memberContainer">

		<div class="cellRow cellRowHeader">

			<div class="cellBlock cellBlockNoBorder">
				<%= link_to "Name" , :action => "list_src" %>
			</div>
			<div class="cellBlock cellBlockNoBorder">
				<%= link_to "Signed SRC", :action => "list_src", :sort_by => "signed_src" %>
			</div>

		</div>

		<% x = 1 %>
		<% @members.each do |member| %>
			<div class="cellRow" style="background-color: <%="#{member.signed_src}" == "true"?"#22FF22":"red"%>">

				<div class="cellBlock cellBlockNoBorder" style="text-align: left;">
					<%= link_to h(member.last_first) , :action => "show" , :id => member %>
				</div>
				<div class="cellBlock cellBlockNoBorder">
					<%=h "#{member.signed_src}" == "true"?"Yes":"No" %>
				</div>

			</div>

			<% x = x + 1 %>

		<% end %>

	</div>

</div>
